package com.jin.service;

import com.jin.model.Banner;
import com.jin.repository.BannerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerService {
    @Autowired
    BannerRepository bannerRepository;
    public Banner getByName(String name){
        return  bannerRepository.findOneByName(name);
    }
}
